package modellayer;

/**
 * The customer class to create customer objects
 * @author Allan Eriksen, Andreas Rye, Casper Madsen, Christian Stidsborg, Stefan Bols
 */

public class Customer {
	private int customerNo;
	private String firstName;
	private String lastName;
	private String address;
	private int zipcode;
	private String city;
	private String phonenumber;
	private boolean club;
	private boolean isDummy;
	
	/**
	 * Customer Fields
	 * @param customerNo
	 * @param firstName
	 * @param lastName
	 * @param address
	 * @param zipcode
	 * @param city
	 * @param phonenumber
	 * @param club
	 */
	
	/**
	 * Constructor for the Customer class 
	 */
	public Customer(int customerNo, String firstName, String lastName,
			String address, int zipcode, String city, String phonenumber,
			boolean club) {
		super();
		this.customerNo = customerNo;
		this.firstName = firstName;
		this.lastName = lastName;
		this.address = address;
		this.zipcode = zipcode;
		this.city = city;
		this.phonenumber = phonenumber;
		this.club = club;
		this.isDummy = false;
	}
	
	/**
	 * Customer dummy for the Database layer
	 * @param customerNo
	 */
	public Customer(int customerNo) {
		this.customerNo = customerNo;
		this.isDummy = true;
	}

	/**
	 * Get method for the customer number
	 * @return the customerNo
	 */
	public int getCustomerNo() {
		return customerNo;
	}

	/**
	 * Set method for the customer number
	 * @param customerNo
	 */
	public void setCustomerNo(int customerNo) {
		this.customerNo = customerNo;
	}

	/**
	 * Get method for the first name
	 * @return the firstName
	 */
	public String getFirstName() {
		return firstName;
	}

	/**
	 * Set method for the first name
	 * @param firstName
	 */
	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	/**
	 * Get method for the last name
	 * @return the lastName
	 */
	public String getLastName() {
		return lastName;
	}

	/**
	 * Set method for the last name
	 * @param lastName
	 */
	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	/**
	 * Get method for the address
	 * @return the address
	 */
	public String getAddress() {
		return address;
	}

	/**
	 * Set method for the address
	 * @param address 
	 */
	public void setAddress(String address) {
		this.address = address;
	}

	/**
	 * Get method for the zipcode
	 * @return the zipcode
	 */
	public int getZipcode() {
		return zipcode;
	}

	/**
	 * Set method for the zipcode
	 * @param zipcode
	 */
	public void setZipcode(int zipcode) {
		this.zipcode = zipcode;
	}

	/**
	 * Get method for the city
	 * @return the city
	 */
	public String getCity() {
		return city;
	}

	/**
	 * Set method for the city
	 * @param city the city to set
	 */
	public void setCity(String city) {
		this.city = city;
	}

	/**
	 * Get method for the phonenumber
	 * @return the phonenumber
	 */
	public String getPhonenumber() {
		return phonenumber;
	}

	/**
	 * Set method for the phonenumber
	 * @param phonenumber
	 */
	public void setPhonenumber(String phonenumber) {
		this.phonenumber = phonenumber;
	}

	/**
	 * Get method for the club
	 * @return the club
	 */
	public boolean isClub() {
		return club;
	}

	/**
	 * Set method for the club
	 * @param club 
	 */
	public void setClub(boolean club) {
		this.club = club;
	}
	
	/**
	 * @return the isDummy
	 */
	public boolean isDummy() {
		return this.isDummy;
	}
}
